package com.android.support.lib.universal.ui.guide;


import android.annotation.SuppressLint;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

public class FragmentGuide extends Fragment {

    private View mContentView;
    private int layoutID=0;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {

        if(layoutID!=0){
            try {
                mContentView = inflater.inflate(layoutID, null);
            } catch (Exception e) {
                // TODO: handle exception
                Log.e("test", "FragmentGuide错误" + e.getMessage());
            }
        }
        return mContentView;
    }
    public FragmentGuide() {
        super();
    }
    @SuppressLint("ValidFragment")
    public FragmentGuide(int layoutID) {
        super();
        this.layoutID = layoutID;
    }
}
